#include<iostream>
using namespace std;

class DD{
private:
	int id;
	int fs;
	static int count;
	static int sum;
public:
	DD(int i,int f){
		id=i;
		fs=f;
		count++;
		sum+=f;
	}
	static int getAvg(){
		return sum/count;
	}
	static int getCount(){
		return count;
	}
	static int getSum(){
		return sum;
	}
};
int DD::count=0;
int DD::sum=0;

int main4(){
	DD d1(1,100),d2(2,200),d3(3,153),d4(4,160),d5(5,170),d6(6,180);

	cout<<"平均分为："<<DD::getAvg()<<endl;
	cout<<"人数为："<<DD::getCount()<<endl;
	cout<<"总数为："<<DD::getSum()<<endl;
	cin.get();
	cin.ignore();
	return 0;
}
